package com.keya.study;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Data
@TableName("study_records")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
public class StudyRecord implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String aetitle;

    @TableField(value = "StudyInstanceUID")
    @JsonProperty(value = "StudyInstanceUID")
    private String StudyInstanceUID;

    @TableField(value = "AccessionNumber")
    @JsonProperty(value = "AccessionNumber")
    private String AccessionNumber;

    private Integer count;

    private Date createdAt;

    private Date updatedAt;

}
